//package com.config;
//
//import com.alibaba.druid.support.spring.stat.DruidStatInterceptor;
//import org.springframework.aop.support.DefaultPointcutAdvisor;
//import org.springframework.aop.support.JdkRegexpMethodPointcut;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.context.annotation.Scope;
//
///**
// * @author WZ
// * @version 1.0
// * @date 2021/9/2 15:42
// */
//@Configuration
//public class SpringDaoMethodAspect {
//
//	@Bean
//	public DruidStatInterceptor druidStatInterceptor() {
//		DruidStatInterceptor dsInterceptor = new DruidStatInterceptor();
//		return dsInterceptor;
//	}
//
//	@Bean
//	@Scope("prototype")
//	public JdkRegexpMethodPointcut druidStatPointcut() {
//		JdkRegexpMethodPointcut pointcut = new JdkRegexpMethodPointcut();
//		pointcut.setPattern("com.*");//根据实际包名
//		return pointcut;
//	}
//
//	@Bean
//	public DefaultPointcutAdvisor druidStatAdvisor(DruidStatInterceptor druidStatInterceptor, JdkRegexpMethodPointcut druidStatPointcut) {
//		DefaultPointcutAdvisor defaultPointAdvisor = new DefaultPointcutAdvisor();
//		defaultPointAdvisor.setPointcut(druidStatPointcut);
//		defaultPointAdvisor.setAdvice(druidStatInterceptor);
//		return defaultPointAdvisor;
//	}
//}
